<?php
if(!defined('DEDEINC')) exit('Request Error!');

function lib_topid(&$ctag,&$refObj)
{
    $typeid = !empty($refObj->TypeLink->TypeInfos['topid']) ? $refObj->TypeLink->TypeInfos['topid'] : $refObj->TypeLink->TypeInfos['id'];
	return $typeid;
}
?>